package com.example.test.mapper;

import com.example.test.annotation.DataSource;
import com.example.test.bean.OrderInfoBO;
import com.example.test.enums.DataSourceType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WybzMapper {
    @Select("select * from order_info where CREATE_TIME like '%${CREATE_TIME}%' ")
    List<OrderInfoBO> getOrderInfoByCreateTime(@Param("CREATE_TIME") String CREATE_TIME);

    @DataSource(value = DataSourceType.SLAVE1)
    @Select("select IM_ACCOUNT from sys_employee where KEY_ID = #{ KEY_ID }")
    String getImByKeyId(@Param("KEY_ID") String keyId);

}
